workspace "fastcdr"
	configurations { "Debug", "Release" }
	platforms { "Win32", "Win64", "Linux" }
	location "build"

filter { "platforms:Win32" }
    system "windows"
    architecture "x32"
	defines { "_WIN32", "WIN32","NOMINMAX"}
	staticruntime "on"
	
	
filter { "platforms:Win64" }
    system "windows"
    architecture "x64"	
	defines { "_WIN32", "WIN32" ,"NOMINMAX"}
	
filter { "platforms:Linux" }
    system "linux"
    architecture "x64"	
	defines { "LINUX", "linux" ,"POSIX"}
	
filter "configurations:Debug"
	defines { "DEBUG" , "_DEBUG"}
	symbols "On"
	optimize "Debug"
	
filter "configurations:Release"
	defines { "NDEBUG" }
	symbols "Off"
	optimize "Speed"


project "fastcdr"
	language "C++"
	kind "StaticLib"
	includedirs{
		"include/",
	}
	files{
		"include/**.h",
		"src/**.h",
		"src/**.cpp",
	}

filter { "platforms:Win*" }
	disablewarnings {
		"4125","4127","4189","4201","4244","4245","4251","4267",
		"4291","4310","4324","4389","4456","4457","4459","4505",
		"4554","4589","4611","4701","4702","4703","4706","4800",
		"5030",
	}

project "test"
	language "C++"
	kind "ConsoleApp"
	includedirs{
		"include/",
		"test",
	}
	files{
		"test/gtest/*.h",
		"test/gtest/*.cc",
		"test/*.h",
		"test/*.cpp",
	}
	links{
		"fastcdr"
	}